<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/init.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="/WEB-INF/jsp/common/common.jsp" />
<jsp:include page="/WEB-INF/jsp_lib/validate.jsp" />
<jsp:include page="/WEB-INF/jsp_lib/my97.jsp" />
<jsp:include page="/WEB-INF/jsp_lib/showimage.jsp" />
<script type="text/javascript">
	function myChk() {
		var start_time = $("input[name='srh_start']").val();
		if (start_time.length == 0) {
			$("#form1").validate({
				rules : {
					'srh_end' : {
						required : true
					}
				}
			});
		}
	}
	function query() {
		$("#form1").submit();
	}

	$(function(){
		var img = "<img src='${path}/img/imgid.htm?mh=500&mw=500'/>";
		showBig(img);
	});
</script>
</head>
<body>
	<jsp:include page="/WEB-INF/jsp_lib/tip.jsp" />
	<div>
		<form action="${path}/ix/detail/seal/engraving/list.htm" id="form1"
			method="post">
			<h2>
				<div>印章刻制明细</div>
			</h2>
			<div class="query">
				<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="5">
					<tr>
						<td width="80" align="right"><strong>操作人员：</strong></td>
						<td width="150" align="left"><input name="srh_uname"
							type="text" /></td>
						<!-- 						<td width="80" align="right">
							<strong>使用机构：</strong>
						</td>
						<td width="150" align="left">
							<input name="srh_name" type="text"/> 
							
						</td>
 -->
						<td width="80" align="right"><strong>操作时间：</strong></td>
						<td width="150" align="left"><input name="srh_start"
							onBlur="myChk()" readonly="readonly" type="text" maxlength="20"
							onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate" /></td>
						<td width="5" align="right">-</td>
						<td width="150" align="left"><input name="srh_end"
							readonly="readonly" type="text" maxlength="20"
							onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate" /></td>
						<td align="left"><a href="javascript:query();"> <img
								src="${path}/style_cp/img/query.jpg" name="Image4" width="85"
								height="27" border="0" id="Image4" />
						</a></td>
					</tr>
				</table>
			</div>
			<table width="100%" class="listlindex">
				<tr>
					<th>刻章字样</th>
					<th>印模图片</th>
					<th>刻章种类</th>
					<th>申请时间</th>
					<th>刻章厂</th>
					<th>联系人</th>
					<th>联系人电话</th>
					<th>登记时间</th>
					<th>操作人员</th>
					<th>结果</th>
				</tr>
				<c:if test="${fn:length(list)==0}">
					<tr>
						<td colspan="9"><div class="tip_div">暂无记录.</div></td>
					</tr>
				</c:if>
				<c:forEach items="${list}" var="v">
					<tr>
						<td>${v.title}</td>
						<td><a href="${path}/img/${v.file_id}.htm" target="_blank"
							class="banimg" id="${v.file_id}"> <img
								src='${path}/img/${v.file_id}.htm?mh=50&mw=50' />
								</a></td>
						<td>${v.type_name}</td>
						<td><fmt:formatDate value="${v.start}"
								pattern="yyyy-MM-dd HH:mm:ss" /></td>
						<td>${v.factory}</td>
						<td>${v.factory_linkman}</td>
						<td>${v.factory_mobile}</td>
						<td><fmt:formatDate value="${v.end_date}"
								pattern="yyyy-MM-dd HH:mm:ss" /></td>
						<td>${v.uname}</td>
						<td>${v.flag}</td>
					</tr>
				</c:forEach>
			</table>
			<div class="options">
				<div class="quotes">
					<page:page page="${page}" />
				</div>
				<div class="clear"></div>
			</div>
		</form>
	</div>
</body>
</html>